I have not done work with EF for a while but it was possible to generate code to wrap for POCOs (Plain Old Clr Objects) so do recasting was required.
Otherwise, change:
student = myDBEnty.sp_StudentDetails("SELECT");
To:
var result = myDBEnty.sp_StudentDetails("SELECT");
and set a breakpoint after. Now use the Locals window to view the contents of
result
variable. Now you can see what work needs to be done.
This is a good resource for you:
entityframeworktutorial.net[
^]