Fixed castable implementation