Forgot the casts here

Signed-off-by: Chris Sanders <zidane@outlook.com>