You are still confuse about the cast thing, i made some prints with exactly the thing you need to do. Please take a look: