fixed __cast_fpto<...> set of functions